package br.com.biblioteca.events
{
	import flash.events.Event;

	public class GenericEvent extends Event
	{
		public static const INSERT:String="insert";
		public static const UPDATE:String="update";
		public static const EXCLUDE:String="exclude";
		public static const LIST:String="list";
		public static const NOVO:String="novo";
		public static const EDIT:String="edit";
		public static const OPEN_WINDOW:String="openWindow";

		private var _genericObject:Object;

		public function GenericEvent(type:String, obj:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			genericObject=obj;
			super(type, bubbles, cancelable);
		}

		public function set genericObject(value:Object):void
		{
			this._genericObject=value;
		}

		public function get genericObject():Object
		{
			return this._genericObject;
		}

	}
}